  
  <div class="content col-xs-12 col-sm-10">
            <div class="banner">
              <p class="fl">类别管理 > 添加类别</p>
            </div>
          
            <div class="infoBox">
              <div class="info">
        <?php echo validation_errors(); ?>

        <?php 
            $attributes = array('enctype' => 'multipart/form-data');
              echo form_open('catalog/add', $attributes); 
            ?>
                        
                 <div class="line">
                            <label>标题:</label>
                            <input type="text" name="title" value="标题" onFocus="if(value==defaultValue){value='';this.style.color='#000'}" onBlur="if(!value){value=defaultValue;this.style.color='#999'}">
                        </div>
                        <div class="line">
                            <label>父类别:</label>
                            <select name="parentid" class="level">
                                <option value="0" selected>无</option>
                            
                                <?php 
                                foreach ($cataloglist as $item)
                                {
                                  echo "<option value='".$item['id']."'>".$item['title']."</option>";
                                }

                                ?>
                            </select> 
                              
                          </div>  
                         <div class="line">
                            <label>序号:</label>
                            <input type="text" name="orders" value="" onFocus="if(value==defaultValue){value='';this.style.color='#000'}" onBlur="if(!value){value=defaultValue;this.style.color='#999'}">
                        </div> 
                     

                        <div class="line">
                          </div> 
                        <div class="lastLine">
                          <input type="submit" value="添加" class="add"/>
                          <!-- <input type="button" value="" class="cancel fr"/> -->

                      </div>  
                 </form> 
                </div>

            </div>
          
        </div>
      </div>
    </div>
